<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>客户信息</title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<t:base type="bootstrap,bootstrap-table,layer,validform,bootstrap-form"></t:base>
</head>
<body style="overflow:hidden;overflow-y:auto;">
<div class="container" style="width:100%;">
	<div class="panel-heading"></div>
	<div class="panel-body">
		<form class="form-horizontal" role="form" id="formobj" action="zTakeinController.do?doAdd" method="POST">
			<input type="hidden" id="btn_sub" class="btn_sub"/>
			<input type="hidden" id="id" name="id"/>
			<div class="row">
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							合同编号：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="contract" type="text" class="form-control input-sm" maxlength="64"  validType="z_takein,contract,id" datatype="*" ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							收据编号：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="receipt" type="text" class="form-control input-sm" maxlength="64"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售姓名：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="saleName" type="text" class="form-control input-sm" maxlength="64"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							客户姓名：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="customName" type="text" class="form-control input-sm" maxlength="64"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							身份证号：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="idCard" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							入金时间：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="takeinTime" type="text" class="form-control input-sm laydate-date"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							金额：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="amount" type="text" class="form-control input-sm" errormsg="必须为数字，可以有小数"
							datatype="/^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/"
							 maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							期限：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="timeLimit" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							利率：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="rate" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							电话：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="phone" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							汇款账号：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="bankAccount" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							到期时间：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="endTime" type="text" class="form-control input-sm laydate-date"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							投资时间：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="investTime" type="text" class="form-control input-sm laydate-date"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							备注：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="comment" type="text" class="form-control input-sm" maxlength="256"  ignore="ignore"  />
						</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6" style="display: none">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							状态：
						</div>
						<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
							<input name="status" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  value="1" />
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
    var subDlgIndex = '';
    $(document).ready(function() {
        $(".laydate-datetime").each(function(){
            var _this = this;
            laydate.render({
                elem: this,
                format: 'yyyy-MM-dd HH:mm:ss',
                type: 'datetime'
            });
        });
        $(".laydate-date").each(function(){
            var _this = this;
            laydate.render({
                elem: this
            });
        });
        //单选框/多选框初始化
        $('.i-checks').iCheck({
            labelHover : false,
            cursor : true,
            checkboxClass : 'icheckbox_square-green',
            radioClass : 'iradio_square-green',
            increaseArea : '20%'
        });

        //表单提交
        $("#formobj").Validform({
            tiptype:function(msg,o,cssctl){
                if(o.type==3){
                    validationMessage(o.obj,msg);
                }else{
                    removeMessage(o.obj);
                }
            },
            btnSubmit : "#btn_sub",
            btnReset : "#btn_reset",
            ajaxPost : true,
            beforeSubmit : function(curform) {
            },
            usePlugin : {
                passwordstrength : {
                    minLen : 6,
                    maxLen : 18,
                    trigger : function(obj, error) {
                        if (error) {
                            obj.parent().next().find(".Validform_checktip").show();
                            obj.find(".passwordStrength").hide();
                        } else {
                            $(".passwordStrength").show();
                            obj.parent().next().find(".Validform_checktip").hide();
                        }
                    }
                }
            },
            callback : function(data) {
                var win = frameElement.api.opener;
                if (data.success == true) {
                    frameElement.api.close();
                    win.reloadTable();
                    win.tip(data.msg);
                } else {
                    if (data.responseText == '' || data.responseText == undefined) {
                        $.messager.alert('错误', data.msg);
                        $.Hidemsg();
                    } else {
                        try {
                            var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
                            $.messager.alert('错误', emsg);
                            $.Hidemsg();
                        } catch (ex) {
                            $.messager.alert('错误', data.responseText + "");
                            $.Hidemsg();
                        }
                    }
                    return false;
                }
            }
        });

    });
</script>
</body>
</html>